%h3 
  =link_to_remote r.name, { :url =>{:controller => :rooms, :action=> :show, :id => r.id}, :method=>:get, :before => "Element.show('loader');Element.show('wait_icon')", :complete => "Element.hide('loader');Element.hide('wait_icon')"}, :href => (url_for ({:controller => :rooms, :action => :show , :id => r.id}))
  - if logged_in?
    = button_to 'Supprimer', { :controller => 'rooms', :action => "destroy", |
      :id => r.id }, { :method => :delete, :class => "delete", |
      :title => "Supprimer la salle" } |

- if (r.computers.count == 0)
  %span{:title => "cette salle n'a pas d'ordinateurs."}
    = r.computers.count
    = 'x'
    %span.computer
      = 'computer'
- else 
  %span{:title => "cette salle possède " + r.computers.count.to_s + " ordinateur" + ((r.computers.count == 1) ? '' : 's' ) }
    = r.computers.count
    = 'x'
    %span.computer
      = 'computer'
%br/
- if (r.incidents_not_resolved.size > 0)
  %span{:title => "cette salle a actuellement " + r.incidents_not_resolved.size.to_s + " erreur" + ((r.incidents_not_resolved.size == 1) ? '' : 's' ) }
    = r.incidents_not_resolved.size.to_s
    = 'x'
    %span.warning
      = 'errors'
